﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:manager="clr-namespace:ApartmentBillsManager.Start.Manager">

    <DataTemplate DataType="{x:Type manager:ManagerMainWindow}">
        <DockPanel FlowDirection="RightToLeft">
            <Menu DockPanel.Dock="Top">
                <MenuItem Header="קובץ">
                    <MenuItem Header="צור דירה חדשה..." Command="{Binding CreateNewApartmentCommand}"/>
                    <Separator/>
                    <MenuItem Header="ערוך דירה נוכחית..." Command="{Binding EditCurrentApartmentCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <Separator/>
                    <MenuItem Header="שמור דירה נוכחית" Command="{Binding SaveApartmentCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <MenuItem Header="שמור דירה נוכחית בשם..." Command="{Binding SaveApartmentAsCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <MenuItem Header="טען דירה קיימת..." Command="{Binding LoadExistingApartmentCommand}"/>
                    <Separator/>
                    <MenuItem Header="סגור דירה נוכחית" Command="{Binding CloseCurrentApartmentCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <Separator/>
                    <MenuItem Header="יציאה" Command="{Binding ExitCommand}"/>
                </MenuItem>
            </Menu>

            <Grid>
                <ContentPresenter Content="{Binding CurrentContent}"/>
            </Grid>

        </DockPanel>
    </DataTemplate>

</ResourceDictionary>